package org.dschini.ui.maps.world.southamerica {

	import flash.display.Sprite;
	import org.dschini.ui.maps.*;

	public class UruguayMap extends Map
	{
		public var uruguayMapStateLines:Sprite;
		public var uruguayMapShape:Sprite;
		
		override public function set mouseEnabled( mouseEnabled:Boolean ):void
		{
			super.mouseEnabled = mouseEnabled;
			uruguayMapShape.mouseEnabled = mouseEnabled;
			uruguayMapStateLines.mouseEnabled = mouseEnabled;
		}
		
		override public function set doubleClickEnabled( doubleClickEnabled:Boolean ):void
		{
			super.doubleClickEnabled = doubleClickEnabled;
			uruguayMapShape.doubleClickEnabled = doubleClickEnabled;
			uruguayMapStateLines.doubleClickEnabled = doubleClickEnabled;
		}
		
		override public function render():void
		{
			uruguayMapShape.visible = data.shapeVisible ? true : false;
			if( data.shapeColorTransform ){
				uruguayMapShape.transform.colorTransform = data.shapeColorTransform;
			}
			uruguayMapStateLines.visible = data.stateLinesVisible ? true : false;
			if( data.stateLinesColorTransform ){
				uruguayMapStateLines.transform.colorTransform = data.stateLinesColorTransform;
			}
		}
	}	
}
